from TestCase.LoginCase import LoginCase
from TestCase.ImageCase import ImageCase
from PublicFunc.config import Config
from PublicFunc.log import Logger
import argparse


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument("--path", type=str, default="Config/config.json")
    args = parser.parse_args()

    config = Config(args.path)
    logger = Logger()
    login_case = LoginCase(config, logger)
    login_case.run_test()
    image_case = ImageCase(config, logger)
    image_case.run_test()